//C06:ep6_2.c -- sum of some numbers.
#include <stdio.h>

int main(void)
{
    int i = 1, sum = 0;
    while(i <= 100)
    {
        sum += i;
        i++;
    }

    printf("%d\n", sum);
}